﻿<div class="tacgias view">
<h2><?php  __('Tacgia');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tacgia['Tacgia']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Matg'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tacgia['Tacgia']['matg']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tentg'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tacgia['Tacgia']['tentg']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Thực hiện'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Sửa tác giả', true), array('action' => 'edit', $tacgia['Tacgia']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa tác giả', true), array('action' => 'delete', $tacgia['Tacgia']['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $tacgia['Tacgia']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('DS Tác giả', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Tác giả mới', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Tác giả chủ biên', true), array('controller' => 'tacgiachubiens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Tác giả chủ biên mới', true), array('controller' => 'tacgiachubiens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Liên kết tác giả chủ biên');?></h3>
	<?php if (!empty($tacgia['Tacgiachubien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('STT'); ?></th>
		<th><?php __('Mã đầu sách'); ?></th>
		<th><?php __('Mã tác giả'); ?></th>
		<th><?php __('Chủ biên'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($tacgia['Tacgiachubien'] as $tacgiachubien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tacgiachubien['id'];?></td>
			<td><?php echo $tacgiachubien['dausach_id'];?></td>
			<td><?php echo $tacgiachubien['tacgia_id'];?></td>
			<td><?php echo $tacgiachubien['chubien'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'tacgiachubiens', 'action' => 'view', $tacgiachubien['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'tacgiachubiens', 'action' => 'edit', $tacgiachubien['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'tacgiachubiens', 'action' => 'delete', $tacgiachubien['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $tacgiachubien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Tác giả chủ biên mới', true), array('controller' => 'tacgiachubiens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
